#-*- coding:gbk -*-
'''
Created on 2012-7-23

@author: game-netease
'''
import equip
import ConfigParser

class Armor(equip.Equip):
    def __init__(self, name, config_file):
        equip.Equip.__init__(self, name, equip.EquipType.ARMOR)
        self.__loadConfig(config_file)
        
    def __loadConfig(self, config_file):
        config = ConfigParser.ConfigParser()
        config.read(config_file)
        self.m_physical_defence = config.get('ArmorInfo', 'physical_defence')
        self.m_magic_defence = config.get('ArmorInfo', 'magic_defence')
        self.m_price_sell = config.get('Price', 'sell')
        self.m_price_buy = config.get('Price', 'buy')